home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1985-06-08 | 1.3 KB | 22 lines |
- 1000 ' |---------------------------------------------|
- 1010 ' | Example for 8087 Programming, Part 3 |
- 1020 ' | Personal Computer Age 3.1 Solveware |
- 1030 ' | Demonstrate 8087 Register Stack Operations |
- 1040 ' |---------------------------------------------|
- 1050 '
- 1060 '*Reserve space for machine
- 1070 '*language subroutines
- 1080 CLEAR ,29999
- 1090 '*Initialize screen, variable
- 1100 '*types, 8087 tag word masks,
- 1110 '*and subroutine starting
- 1120 '*addresses
- 1130 CLS :KEY OFF :PRINT "Storing machine code. . ."
- 1140 DEFINT A-Z :DIM MASK(3), MTAG(7)
- 1150 MASK(0)=3 :MASK(1)=12 :MASK(2)=48 :MASK(3)=192
- 1160 INIT87=30000
- 1170 LD87=30020
- 1180 ADD87=30070
- 1190 MUL87=30100
- 1200
-